import { Input, InputProps } from "antd";
import React from "react";

interface Props extends InputProps {
    inputchange?: (value: any) => any
}

const FormInput: React.FC<Props> = ({inputchange, ...rest}) => {
    return <Input onChange={inputchange ? (e) => inputchange(e.target.value) : undefined} {...rest} />
}


export default FormInput